package org.dromara.job.processors;

import lombok.extern.slf4j.Slf4j;
import org.dromara.system.service.DianWangService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.powerjob.worker.core.processor.ProcessResult;
import tech.powerjob.worker.core.processor.TaskContext;
import tech.powerjob.worker.core.processor.sdk.BasicProcessor;
import tech.powerjob.worker.log.OmsLogger;

@Slf4j
@Component
public class DianWangProcessor implements BasicProcessor {

    @Autowired
    private DianWangService dianWangService;

    @Override
    public ProcessResult process(TaskContext taskContext) throws Exception {
        dianWangService.handleTendering();
        return new ProcessResult(true,"定时任务执行成功");
    }
}
